package com.compass.framework.helper

import android.annotation.SuppressLint
import android.app.Application
import android.content.Context

/**
 * @desc   提供应用环境
 */
@SuppressLint("StaticFieldLeak")
object CompassAppHelper {
    private lateinit var app: Application
    private var isDebug = false
    private lateinit var mContext :Context

    fun init(application: Application, isDebug: Boolean) {
        this.app = application
        this.isDebug = isDebug

    }

    /**
     * 获取全局应用
     */
    fun getApplication() = app

    /**
     * 是否为debug环境
     */
    fun isDebug() = isDebug


}